package com.xju.ikun.service.serviceImpl;

import com.xju.ikun.bean.CommentBean;
import com.xju.ikun.bean.MtypeBean;
import com.xju.ikun.dao.CommentDao;
import com.xju.ikun.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    private CommentDao commentDao;

    public List<CommentBean> findAll() {return commentDao.findAll();}

    @Override
    public int insertCommentBean(CommentBean commentBean) {
        return commentDao.insertCommentBean(commentBean);
    }

    @Override
    public int updateByPrimaryKey(CommentBean commentBean) {
        return commentDao.updateByPrimaryKey(commentBean);
    }

    @Override
    public int deleteByPrimaryKey(int comment_id) {
        return commentDao.deleteByPrimaryKey(comment_id);
    }

}
